package com.danskin.wechat.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.danskin.wechat.dao.BannerInfoDao;
import com.danskin.wechat.entity.BannerInfo;
import com.danskin.wechat.service.BannerInfoService;
import com.danskin.wechat.util.Page;
@Service
public class BannerInfoServiceImpl implements BannerInfoService{
	@Autowired
	private BannerInfoDao bannerInfoDao;

	@Override
	public List<BannerInfo> findBannerInfo(String appId) {
		// TODO Auto-generated method stub
		return bannerInfoDao.findBannerInfo(appId);
	}

	@Override
	public List<BannerInfo> findBannerInfoList(Page page) {
		// TODO Auto-generated method stub
		return bannerInfoDao.listPageFindBannerInfoList(page);
	}

	@Override
	public int insertBannerInfo(BannerInfo bannerInfo) {
		// TODO Auto-generated method stub
		return bannerInfoDao.insertBannerInfo(bannerInfo);
	}

	@Override
	public void deleteBannerInfo(String id) {
		// TODO Auto-generated method stub
		bannerInfoDao.deleteBannerInfo(id);
	}

	@Override
	public BannerInfo findBannerInfobyId(String id) {
		// TODO Auto-generated method stub
		return bannerInfoDao.findBannerInfobyId(id);
	}

	@Override
	public void updateBannerInfo(BannerInfo bannerInfo) {
		// TODO Auto-generated method stub
		bannerInfoDao.updateBannerInfo(bannerInfo);
	}

	@Override
	public List<BannerInfo> findBannerInfoModth(String appId) {
		// TODO Auto-generated method stub
		return bannerInfoDao.findBannerInfoModth(appId);
	}
}
